import { reqAddress } from '@/api'
const state = {
  addressList:[]
}
const mutations = {
  GETADDRESS(state,addressList){
    state.addressList = addressList
  }
}
const actions = {
  async getAddress({commit}){
    const res =await reqAddress()
    if(res.code == 200){
      commit('GETADDRESS',res.data)
    }
  }
}
export default{
  state,
  mutations,
  actions
}